package com.joysuch.wwyt.bp.entity.risk;

import com.joysuch.wwyt.core.support.AutoSetCommonFieldListener;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * 风险研判-上报配置-特种作业类别
 *
 * @Author ZhangDong
 * @Date 2020/3/3 16:29
 */
@Data
@Entity
@EntityListeners({AuditingEntityListener.class, AutoSetCommonFieldListener.class})
@Table(name = "wwyt_bp_special_work_type")
public class BpSpecialWorkType {


    @Id
    @GeneratedValue(strategy = IDENTITY)
    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty("上报配置表id")
    private Long reportSettingId;

    @ApiModelProperty("特级动火作业")
    private Boolean specialFireWork;

    @ApiModelProperty("一级动火作业")
    private Boolean oneLevelFireWork;

    @ApiModelProperty("二级动火作业")
    private Boolean twoLevelFireWork;

    @ApiModelProperty("受限空间作业")
    private Boolean limitSpaceWork;

    @ApiModelProperty("特级高处作业")
    private Boolean specialHighWork;

    @ApiModelProperty("一级高处作业")
    private Boolean oneLevelHighWork;

    @ApiModelProperty("二级高处作业")
    private Boolean twoLevelHighWork;

    @ApiModelProperty("三级高处作业")
    private Boolean threeLevelHighWork;

    @ApiModelProperty("吊装安全作业")
    private Boolean hoistingSafeWork;

    @ApiModelProperty("临时用电作业")
    private Boolean tempElectricWork;

    @ApiModelProperty("盲板抽堵作业")
    private Boolean blindBlockWork;

    @ApiModelProperty("动土安全作业")
    private Boolean breakGroundSafeWork;

    @ApiModelProperty("断路安全作业")
    private Boolean breakageSafeWork;


    //通用字段
    @ApiModelProperty("创建人")
    @org.springframework.data.annotation.CreatedBy
    private Long createBy;

    @ApiModelProperty("创建时间")
    @org.springframework.data.annotation.CreatedDate
    private java.time.LocalDateTime createTime;

    @ApiModelProperty("更新人")
    @org.springframework.data.annotation.LastModifiedBy
    private Long updateBy;

    @ApiModelProperty("更新时间")
    @org.springframework.data.annotation.LastModifiedDate
    private java.time.LocalDateTime updateTime;

    @ApiModelProperty("租户")
    private Long tenentId;

    @ApiModelProperty("组织机构代码")
    private String orgCode;

}
